/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #004a99;
}

a:hover {
    color: #007bff;
}

h2 {
    color: #004a99;
    font-size: 24px;
    margin-bottom: 15px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.more-link {
    color: #004a99;
    font-size: 14px;
}

.more-link:hover {
    text-decoration: underline;
}

/* 头部样式 */
.header {
    background-color: #004a99;
    color: white;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 28px;
    margin: 0;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 250px;
}

.search-box button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #0056b3;
}

/* 导航栏样式 */
.nav {
    background-color: #003a75;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-list li a:hover {
    background-color: #002a55;
}

/* 下拉菜单 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    display: block !important;
    text-align: left !important;
}

.dropdown-content a:hover {
    background-color: #f1f1f1 !important;
}

.nav-list li:hover .dropdown-content {
    display: block;
}

/* 图片展示区样式 */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    padding: 40px;
}

.banner-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: white;
}

.banner-text p {
    font-size: 18px;
}

/* 新闻版块样式 */
.news-section {
    padding: 40px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-item h3 {
    padding: 10px 15px;
    margin: 0;
    font-size: 18px;
}

.news-item p {
    padding: 0 15px 10px;
    margin: 0;
    color: #666;
    font-size: 14px;
}

.date {
    display: block;
    padding: 0 15px 15px;
    color: #999;
    font-size: 12px;
}

/* 公告版块样式 */
.announcement-section {
    padding: 0 0 40px;
}

.announcement-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.announcement-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.announcement-list li:last-child {
    border-bottom: none;
}

.announcement-list li .date {
    width: 120px;
    flex-shrink: 0;
    color: #666;
}

.announcement-list li a {
    flex-grow: 1;
}

.announcement-list li a:hover {
    text-decoration: underline;
}

/* 主内容区样式 */
.main-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.campus-life, .service-local, .media-coverage {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.campus-life-gallery {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.campus-life-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.service-partners {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.service-partners img {
    height: 60px;
    object-fit: contain;
}

.media-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.media-list li {
    margin-bottom: 10px;
}

.media-list li a {
    text-decoration: underline;
}

/* 专题网站版块样式 */
.special-topics {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.topic-item {
    text-align: center;
}

.topic-item a {
    display: block;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    transition: transform 0.3s;
}

.topic-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.topic-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 4px;
}

.topic-item span {
    display: block;
    font-weight: bold;
}

/* 页脚样式 */
.footer {
    background-color: #004a99;
    color: white;
    padding: 40px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3, .footer-links h3, .footer-follow h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-links ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 40px;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-grid, .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    .nav-list {
        flex-direction: column;
    }

    .banner-text {
        padding: 20px;
    }

    .banner-text h2 {
        font-size: 24px;
    }

    .banner-text p {
        font-size: 14px;
    }

    .news-grid, .topics-grid {
        grid-template-columns: 1fr;
    }

    .announcement-list li {
        flex-direction: column;
    }

    .announcement-list li .date {
        margin-bottom: 5px;
    }

    .campus-life-gallery {
        flex-direction: column;
    }

    .service-partners {
        justify-content: center;
    }
}
